package com.fx.zmlzml.domain.dto;

import com.fx.zmlzml.entity.AhpPcComponentPriceWeight;
import jakarta.validation.constraints.DecimalMax;
import jakarta.validation.constraints.DecimalMin;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class AhpPcComponentPriceWeightDTO extends AhpPcComponentPriceWeight {

//    @NotNull(message = "价格不能为空")
//    @DecimalMin(value = "0.0", inclusive = false, message = "价格必须大于0")
//    @DecimalMax(value = "1000000.0", message = "价格不能超过1000000")
//    private BigDecimal price; // 价格
    
    @DecimalMin(value = "0.0", inclusive = true, message = "预算价格不能为负数")
    @DecimalMax(value = "1000000.0", message = "预算价格不能超过1000000")
    private BigDecimal budgetPrice; // 预算价格

}